package com.zh.springcloud.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.math.BigDecimal;

/**
 * @Description:
 * @ClassName Order
 * @date: 2021.08.09 19:58
 * @Author: zhanghang
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
@TableName("t_order")
public class Order {
	@ApiModelProperty(value = "主键id")
	private Long id;

	@ApiModelProperty(value = "用户id")
	private Long userId;

	@ApiModelProperty(value = "产品id")
	private Long productId;

	@ApiModelProperty(value = "数量")
	private Integer count;

	@ApiModelProperty(value = "金额")
	private BigDecimal money;

	@ApiModelProperty(value = "订单状态：0，创建中， 1: 已完结")
	private Byte status;
}
